<!doctype html>
<html class="no-js" lang="">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="x-ua-compatible" content="ie=edge">
        <title>server documentation</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <link rel="icon" type="image/x-icon" href="../images/favicon.ico">
	      <link rel="stylesheet" href="../styles/style.css">
        <link rel="stylesheet" href="../styles/&#x27;Postmark&#x27;.css">
    </head>
    <body>

        <div class="navbar navbar-default navbar-fixed-top visible-xs">
            <a href="../" class="navbar-brand">server documentation</a>
            <button type="button" class="btn btn-default btn-menu ion-ios-menu" id="btn-menu"></button>
        </div>

        <div class="xs-menu menu" id="mobile-menu">
                <div id="book-search-input" role="search"><input type="text" placeholder="请输入查询关键字"></div>            <compodoc-menu></compodoc-menu>
        </div>

        <div class="container-fluid main">
           <div class="row main">
               <div class="hidden-xs menu">
                   <compodoc-menu mode="normal"></compodoc-menu>
               </div>
               <!-- START CONTENT -->
               <div class="content module">
                   <div class="content-data">



<ol class="breadcrumb">
    <li>模块列表</li>
    <li>DbModule</li>
</ol>

<div class="text-center module-graph-container">
    <div id="module-graph-svg">
        <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.40.1 (20161225.0304)
 -->
<!-- Title: dependencies Pages: 1 -->
<svg width="504pt" height="284pt"
 viewBox="0.00 0.00 504.00 284.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 280)">
<title>dependencies</title>
<polygon fill="#ffffff" stroke="transparent" points="-4,4 -4,-280 500,-280 500,4 -4,4"/>
<text text-anchor="start" x="227.0091" y="-42.4" font-family="sans-serif" font-weight="bold" font-size="14.00" fill="#000000">Legend</text>
<polygon fill="#ffffb3" stroke="transparent" points="14,-10 14,-30 34,-30 34,-10 14,-10"/>
<text text-anchor="start" x="37.629" y="-15.4" font-family="sans-serif" font-size="14.00" fill="#000000"> &#160;Declarations</text>
<polygon fill="#8dd3c7" stroke="transparent" points="127,-10 127,-30 147,-30 147,-10 127,-10"/>
<text text-anchor="start" x="150.7251" y="-15.4" font-family="sans-serif" font-size="14.00" fill="#000000"> &#160;Module</text>
<polygon fill="#80b1d3" stroke="transparent" points="213,-10 213,-30 233,-30 233,-10 213,-10"/>
<text text-anchor="start" x="236.7812" y="-15.4" font-family="sans-serif" font-size="14.00" fill="#000000"> &#160;Bootstrap</text>
<polygon fill="#fdb462" stroke="transparent" points="310,-10 310,-30 330,-30 330,-10 310,-10"/>
<text text-anchor="start" x="333.6732" y="-15.4" font-family="sans-serif" font-size="14.00" fill="#000000"> &#160;Providers</text>
<polygon fill="#fb8072" stroke="transparent" points="406,-10 406,-30 426,-30 426,-10 406,-10"/>
<text text-anchor="start" x="429.7258" y="-15.4" font-family="sans-serif" font-size="14.00" fill="#000000"> &#160;Exports</text>
<g id="clust1" class="cluster">
<title>cluster_DbModule</title>
<polygon fill="none" stroke="#000000" stroke-dasharray="1,5" points="180,-70 180,-268 316,-268 316,-70 180,-70"/>
</g>
<g id="clust4" class="cluster">
<title>cluster_DbModule_exports</title>
<polygon fill="none" stroke="#000000" points="201,-208 201,-260 295,-260 295,-208 201,-208"/>
</g>
<g id="clust6" class="cluster">
<title>cluster_DbModule_providers</title>
<polygon fill="none" stroke="#000000" points="188,-78 188,-130 308,-130 308,-78 188,-78"/>
</g>
<!-- DbService  -->
<g id="node1" class="node">
<title>DbService </title>
<polygon fill="#fb8072" stroke="#000000" points="287.0853,-252 208.9147,-252 208.9147,-216 287.0853,-216 287.0853,-252"/>
<text text-anchor="middle" x="248" y="-229.8" font-family="Times,serif" font-size="14.00" fill="#000000">DbService </text>
</g>
<!-- DbModule -->
<g id="node2" class="node">
<title>DbModule</title>
<polygon fill="#8dd3c7" stroke="#000000" points="286.1572,-187 283.1572,-191 262.1572,-191 259.1572,-187 209.8428,-187 209.8428,-151 286.1572,-151 286.1572,-187"/>
<text text-anchor="middle" x="248" y="-164.8" font-family="Times,serif" font-size="14.00" fill="#000000">DbModule</text>
</g>
<!-- DbModule&#45;&gt;DbService  -->
<g id="edge1" class="edge">
<title>DbModule&#45;&gt;DbService </title>
<path fill="none" stroke="#000000" stroke-dasharray="5,2" d="M248,-187.1061C248,-187.1061 248,-205.991 248,-205.991"/>
<polygon fill="#000000" stroke="#000000" points="244.5001,-205.9909 248,-215.991 251.5001,-205.991 244.5001,-205.9909"/>
</g>
<!-- DbService -->
<g id="node3" class="node">
<title>DbService</title>
<ellipse fill="#fdb462" stroke="#000000" cx="248" cy="-104" rx="51.5843" ry="18"/>
<text text-anchor="middle" x="248" y="-99.8" font-family="Times,serif" font-size="14.00" fill="#000000">DbService</text>
</g>
<!-- DbService&#45;&gt;DbModule -->
<g id="edge2" class="edge">
<title>DbService&#45;&gt;DbModule</title>
<path fill="none" stroke="#000000" d="M248,-122.1061C248,-122.1061 248,-140.991 248,-140.991"/>
<polygon fill="#000000" stroke="#000000" points="244.5001,-140.9909 248,-150.991 251.5001,-140.991 244.5001,-140.9909"/>
</g>
</g>
</svg>

    </div>
    <i id="fullscreen" class="icon ion-ios-resize module-graph-fullscreen-btn" aria-hidden="true"></i>
    <div class="btn-group">
        <button id="zoom-in" class="btn btn-default btn-sm">放大</button>
        <button id="reset" class="btn btn-default btn-sm">重置</button>
        <button id="zoom-out" class="btn btn-default btn-sm">缩小</button>
    </div>
</div>
<script src="../js/libs/svg-pan-zoom.min.js"></script>
<script src="../js/svg-pan-zoom.controls.js"></script>

<ul class="nav nav-tabs" role="tablist">
    <li  class="active" >
        <a href="#info" role="tab" id="info-tab" data-toggle="tab" data-link="info">Info</a>
    </li>
    <li >
        <a href="#source" role="tab" id="source-tab" data-toggle="tab" data-link="source">Source</a>
    </li>
</ul>

<div class="tab-content">
    <div class="tab-pane fade active in" id="c-info">

        <p class="comment">
            <h3>文件</h3>
        </p>
        <p class="comment">
            <code>libs/db/src/db.module.ts</code>
        </p>




        <div class="container-fluid module">
            <div class="row">
                <div class="col-sm-3">
                    <h3>提供商列表<a href="https://angular.io/api/core/NgModule#providers" target="_blank"
                            title="Official documentation about module providers"><span class="icon ion-ios-information-circle-outline"></a></h3>
                    <ul class="list-group">
                        <li class="list-group-item">
                            <a href="../injectables/DbService.html">DbService</a>
                        </li>
                    </ul>
                </div>
                <div class="col-sm-3">
                    <h3>导出<a href="https://angular.io/api/core/NgModule#exports" target="_blank" title="Official documentation about module exports"><span
                                class="icon ion-ios-information-circle-outline"></a></h3>
                    <ul class="list-group">
                        <li class="list-group-item">
                            <a href="../s/DbService.html">DbService</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>


    </div>


    <div class="tab-pane fade  tab-source-code" id="c-source">
        <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Module } from &#x27;@nestjs/common&#x27;;
import { DbService } from &#x27;./db.service&#x27;;
import { Area } from &#x27;./entity/area.entity&#x27;;
import { Assets } from &#x27;./entity/assets.entity&#x27;;
import { AssetsType } from &#x27;./entity/assets-type.entity&#x27;;
import { Feedback } from &#x27;./entity/feedback.entity&#x27;;
import { Funds } from &#x27;./entity/funds.entity&#x27;;
import { Group } from &#x27;./entity/group.entity&#x27;;
import { LearningResources } from &#x27;./entity/learning-resources.entity&#x27;;
import { Migrate } from &#x27;./entity/migrate.entity&#x27;;
import { NonOperatingAssets } from &#x27;./entity/non-operating-assets.entity&#x27;;
import { OperatingAssets } from &#x27;./entity/operating-assets.entity&#x27;;
import { OrgAction } from &#x27;./entity/org-action.entity&#x27;;
import { OrgActionType } from &#x27;./entity/org-action-type.entity&#x27;;
import { PartyMember } from &#x27;./entity/party-member.entity&#x27;;
import { Photo } from &#x27;./entity/photo.entity&#x27;;
import { PhotoMetadata } from &#x27;./entity/photoMetadata.entity&#x27;;
import { ProjectConstruction } from &#x27;./entity/project-construction.entity&#x27;;
import { Resources } from &#x27;./entity/resources.entity&#x27;;
import { ResourcesType } from &#x27;./entity/resources-type.entity&#x27;;
import { Subsidy } from &#x27;./entity/subsidy.entity&#x27;;
import { SubsidyInfo } from &#x27;./entity/subsidy-info.entity&#x27;;
import { SubsidyType } from &#x27;./entity/subsidy-type.entity&#x27;;
import { Town } from &#x27;./entity/town.entity&#x27;;
import { User } from &#x27;./entity/user.entity&#x27;;
import { Village } from &#x27;./entity/village.entity&#x27;;
import { VillageAction } from &#x27;./entity/village-action.entity&#x27;;
import { VillageActionType } from &#x27;./entity/village-action-type.entity&#x27;;
import { VillageBulletinBoard } from &#x27;./entity/village-bulletin-board.entity&#x27;;
import { VillageCadre } from &#x27;./entity/village-cadre.entity&#x27;;
import { VillageMeeting } from &#x27;./entity/village-meeting.entity&#x27;;
import { Villager } from &#x27;./entity/villager.entity&#x27;;
import { TypeOrmModule, TypeOrmModuleOptions } from &#x27;@nestjs/typeorm&#x27;;
import * as path from &#x27;path&#x27;


const entities &#x3D; [
  Area,
  Assets,
  AssetsType,
  Feedback,
  Funds,
  Group,
  LearningResources,
  Migrate,
  NonOperatingAssets,
  OperatingAssets,
  OrgAction,
  OrgActionType,
  PartyMember,
  Photo,
  PhotoMetadata,
  ProjectConstruction,
  Resources,
  ResourcesType,
  Subsidy,
  SubsidyInfo,
  SubsidyType,
  Town,
  User,
  Village,
  VillageAction,
  VillageActionType,
  VillageBulletinBoard,
  VillageCadre,
  VillageMeeting,
  Villager,
]


console.log(path.normalize(__dirname + &quot;../../../libs/**/entity/*.entity{.ts,.js}&quot;))

@Module({
  imports: [
    TypeOrmModule.forRootAsync({
      useFactory() {
        return {
          &quot;type&quot;: process.env.DB_TYPE,
          &quot;host&quot;: process.env.DB_HOST,
          &quot;port&quot;: process.env.DB_PORT,
          &quot;username&quot;: process.env.DB_USERNAME,
          &quot;password&quot;: process.env.DB_PASSWORD,
          &quot;database&quot;: process.env.DB_DATABASE,
          &quot;entities&quot;: entities,
          &quot;synchronize&quot;: true,
          &quot;logger&quot;: &quot;advanced-console&quot;,
          &quot;logging&quot;: true,
          maxQueryExecutionTime: 1000
        } as TypeOrmModuleOptions
      }
    }),
  ],
  providers: [DbService],
  exports: [DbService],
})
export class DbModule {}
</code></pre>
    </div>
</div>










                   




                   </div><div class="search-results">
    <div class="has-results">
        <h1 class="search-results-title"><span class='search-results-count'></span> result-matching "<span class='search-query'></span>"</h1>
        <ul class="search-results-list"></ul>
    </div>
    <div class="no-results">
        <h1 class="search-results-title">无匹配的结果 "<span class='search-query'></span>"</h1>
    </div>
</div>
</div>
               <!-- END CONTENT -->
           </div>
       </div>

       <script>
            var COMPODOC_CURRENT_PAGE_DEPTH = 1;
            var COMPODOC_CURRENT_PAGE_CONTEXT = 'module';
            var COMPODOC_CURRENT_PAGE_URL = 'DbModule.html';
            var MAX_SEARCH_RESULTS = 15;
       </script>

       <script src="../js/libs/custom-elements.min.js"></script>
       <script src="../js/libs/lit-html.js"></script>
       <!-- Required to polyfill modern browsers as code is ES5 for IE... -->
       <script src="../js/libs/custom-elements-es5-adapter.js" charset="utf-8" defer></script>
       <script src="../js/menu-wc.js" defer></script>

       <script src="../js/libs/bootstrap-native.js"></script>

       <script src="../js/libs/es6-shim.min.js"></script>
       <script src="../js/libs/EventDispatcher.js"></script>
       <script src="../js/libs/promise.min.js"></script>
       <script src="../js/libs/zepto.min.js"></script>

       <script src="../js/compodoc.js"></script>

       <script src="../js/tabs.js"></script>
       <script src="../js/menu.js"></script>
       <script src="../js/libs/clipboard.min.js"></script>
       <script src="../js/libs/prism.js"></script>
       <script src="../js/sourceCode.js"></script>
          <script src="../js/search/search.js"></script>
          <script src="../js/search/lunr.min.js"></script>
          <script src="../js/search/search-lunr.js"></script>
          <script src="../js/search/search_index.js"></script>
       <script src="../js/lazy-load-graphs.js"></script>


    </body>
</html>
